package com.jinbo.footmessage.order;


import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.ListView;
import android.widget.TextView;

import com.jinbo.footmessage.BaseActivity;
import com.jinbo.footmessage.MyApplication;
import com.jinbo.footmessage.R;
import com.jinbo.footmessage.httpbean.CommentBean;
import com.jinbo.footmessage.httpbean.OrderBean;
import com.jinbo.footmessage.httpbean.OrdersBean;
import com.jinbo.footmessage.httpbean.WorkerInformationBean;
import com.jinbo.footmessage.httpretrofit.BusinessController;
import com.jinbo.footmessage.httpretrofit.Listener;
import com.jinbo.footmessage.serverInf.ServerInfActivity;
import com.jinbo.footmessage.utils.LocalPreferencesHelper;

import java.util.List;


public class NotConfirmFragment extends Fragment implements OrderActivity.Callbacks{
	 ListView list;
	List<OrderBean> orders;
	NotConfirmItemListViewAdapter adapter;


	 @Override
	 public void change(List< OrderBean > orders){
		// TODO Auto-generated method stub;
		 adapter.setorders(orders);


	 }

	 @Override
	 public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		 View view= inflater.inflate(R.layout.fragment_not_confirm, container, false);

		 list=(ListView)view.findViewById(R.id.mainListView);
		 adapter=new NotConfirmItemListViewAdapter((BaseActivity)getActivity(),orders);

		 list.setAdapter(adapter);
		 return view;
	}


/*	@Override
	public void menu2(PopupWindow menu) {
		// TODO Auto-generated method stub
		//this.menu=menu;
	}*/

}
